package vista;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaFactura extends javax.swing.JFrame {
	private JPanel panFactura;
	private JLabel lblRifFactura;
	private JLabel lblCodigoCliente;
	private JTextField txtCodigoCliente;
	private JTextField txtNumeroFactura;
	private JTextField txtFechaFactura;
	private JLabel lblTelefono;
	private JLabel lblDireccion;
	private JLabel lblNombreCliente;
	private JLabel lblDatosCliente;
	private JLabel lblNumeroFactura;
	private JLabel lblFechaFactura;
	private JLabel lblDrogueria;
	private JTextField txtNombreCliente;
	private JTextField txtHora;
	private JLabel lblHora;
	private JButton btnBuscarCliente;
	private JTextField txtTelefonoCliente;
	private JTextField txtDireccionCliente;

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e) {
			e.printStackTrace();
		}
	}


	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaFactura inst = new VentanaFactura();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaFactura() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setTitle("Factura de Venta");
			{
				panFactura = new JPanel();
				getContentPane().add(panFactura, "Center");
				panFactura.setBounds(0, 0, 696, 755);
				panFactura.setLayout(null);
				{
					lblDrogueria = new JLabel();
					panFactura.add(lblDrogueria);
					lblDrogueria.setText("Drogueria");
					lblDrogueria.setBounds(34, 28, 70, 17);
				}
				{
					lblRifFactura = new JLabel();
					panFactura.add(lblRifFactura);
					lblRifFactura.setText("Rif: XXXXXXXXXXX");
					lblRifFactura.setBounds(34, 57, 112, 17);
				}
				{
					lblFechaFactura = new JLabel();
					panFactura.add(lblFechaFactura);
					lblFechaFactura.setText("Fecha:");
					lblFechaFactura.setBounds(341, 28, 46, 17);
				}
				{
					lblNumeroFactura = new JLabel();
					panFactura.add(lblNumeroFactura);
					lblNumeroFactura.setText("Factura N° ");
					lblNumeroFactura.setBounds(341, 90, 83, 17);
				}
				{
					lblDatosCliente = new JLabel();
					panFactura.add(lblDatosCliente);
					lblDatosCliente.setText("Datos del Cliente");
					lblDatosCliente.setBounds(34, 130, 119, 17);
				}
				{
					lblCodigoCliente = new JLabel();
					panFactura.add(lblCodigoCliente);
					lblCodigoCliente.setText("Código:");
					lblCodigoCliente.setBounds(89, 174, 53, 17);
				}
				{
					lblNombreCliente = new JLabel();
					panFactura.add(lblNombreCliente);
					lblNombreCliente.setText("Nombre:");
					lblNombreCliente.setBounds(89, 212, 61, 17);
				}
				{
					lblDireccion = new JLabel();
					panFactura.add(lblDireccion);
					lblDireccion.setText("Dirección:");
					lblDireccion.setBounds(89, 249, 70, 17);
				}
				{
					lblTelefono = new JLabel();
					panFactura.add(lblTelefono);
					lblTelefono.setText("Teléfono:");
					lblTelefono.setBounds(89, 289, 68, 17);
				}
				{
					txtFechaFactura = new JTextField();
					panFactura.add(txtFechaFactura);
					txtFechaFactura.setBounds(430, 23, 108, 27);
				}
				{
					txtNumeroFactura = new JTextField();
					panFactura.add(txtNumeroFactura);
					txtNumeroFactura.setBounds(430, 85, 108, 27);
				}
				{
					txtCodigoCliente = new JTextField();
					panFactura.add(txtCodigoCliente);
					txtCodigoCliente.setBounds(171, 169, 77, 27);
				}
				{
					txtNombreCliente = new JTextField();
					panFactura.add(txtNombreCliente);
					txtNombreCliente.setBounds(171, 207, 379, 27);
				}
				{
					txtDireccionCliente = new JTextField();
					panFactura.add(txtDireccionCliente);
					txtDireccionCliente.setBounds(171, 244, 379, 27);
				}
				{
					txtTelefonoCliente = new JTextField();
					panFactura.add(txtTelefonoCliente);
					txtTelefonoCliente.setBounds(171, 284, 77, 27);
				}
				{
					btnBuscarCliente = new JButton();
					panFactura.add(btnBuscarCliente);
					btnBuscarCliente.setText("Buscar");
					btnBuscarCliente.setBounds(266, 168, 60, 29);
				}
				{
					lblHora = new JLabel();
					panFactura.add(lblHora);
					lblHora.setText("Hora:");
					lblHora.setBounds(341, 61, 38, 17);
				}
				{
					txtHora = new JTextField();
					panFactura.add(txtHora);
					txtHora.setBounds(430, 52, 64, 27);
				}
			}
			pack();
			this.setSize(706, 797);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
